<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>

        function findPhoneNumber(str) {
            const phoneReg = /(13[0-9]|14[579]|15[0-3,5-9]|16[6]|17[0135678]|18[0-9]|19[89])\d{8})|(\d{3}-\d{8}|\d{4}-\d{7,8})/
            return [...str.match(phoneReg)]
        }
    </script>
</body>
</html>